//import 'package:d';

class FunctionsTest {
  bool strEqual(String str, String str1) {
    return str == str1;
  }

  /*** 可选参数**/

  ///演示可选参数，和参数默认值
  String getUserInfo(String name, String sex, [String from = "American"]) {
    var info = "$name 的性别是 $sex";
    if (null != from) {
      info += "来自 $from";
    }

    return info;
  }
}

void main() {
  print(FunctionsTest().getUserInfo("张三", "男", "中国"));
}
